package com.iran.decorator.example;

public class DecoratorWearingOthers extends Decorator {



    @Override
    public void wearing(Person person){
        super.wearing(person);
        this.setWork(person);
    }

    private void setWork(Person person){
        System.out.println(person.getName() + " 是老板,今年" + person.getAge() + "岁");
    }
}
